]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Make sure that the source actor is square
authorAdel Gadllah <adel.gadllah@gmail.com>
Wed, 26 Feb 2014 17:09:45 +0000 (18:09 +0100)
committerAdel Gadllah <adel.gadllah@gmail.com>
Wed, 26 Feb 2014 17:15:38 +0000 (18:15 +0100)
Commit b7e1539699ef removed the size to support hidpi but that caused the
actor to no longer be square. Fix that by going back to setting a size
but apply the scale factor before doing so.

js/ui/messageTray.js

index 1e5429717cbaa8f675211747e21f06fa13ee94b2..6cdc64cc77f45f45c1ac4304d46119881e6a9ac5 100644 (file)
@@ -1162,8 +1162,10 @@ const SourceActor = new Lang.Class({
         }));
         this._actorDestroyed = false;
 
+        let scale_factor = St.ThemeContext.get_for_stage(global.stage).scale_factor;
         this._iconBin = new St.Bin({ x_fill: true,
-                                     y_fill: true });
+                                     height: size * scale_factor,
+                                     width: size * scale_factor });
 
         this.actor.add_actor(this._iconBin);